<?php

class Form_Comment extends Zend_Form
{

    public function init()
    {
    	
        $name = new Zend_Form_Element_Text("name");
        $name->setLabel("姓名: ");
        $name->setRequired(true);
        $filter = new Zend_Filter_StripTags();
        $name->addFilter($filter);
        $this->addElement($name, "name");
        
        $email = new Zend_Form_Element_Text("email");
        $email->setLabel("电邮: ");
        $email->setRequired(true);
        $filter = new Zend_Filter_StripTags();
        $email->addFilter($filter);
        $this->addElement($email, "email");
        
        $content = new Zend_Form_Element_Textarea("content");
        //$name->setLabel("Name: ");
        $content->setRequired(true);
        $filter = new Zend_Filter_StripTags();
        //$contentValidator = new Zend_Validate_(false);
        $content->addFilter($filter);
        $this->addElement($content, "content");
        
        
        $submit = new Zend_Form_Element_Submit("submit");
        $this->addElement($submit, "submit");
    }


}

